﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Pay.Data {
	public partial class PostFeeMap
        : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<PostFee> {
		public PostFeeMap() {
			// table
			ToTable("mc_PostFee", "dbo");

			// keys
			HasKey(t => t.Id);

			// Properties
			Property(t => t.Id)
				.HasColumnName("Id")
				.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
				.IsRequired();
			Property(t => t.ContinuedWeight)
				.HasColumnName("ContinuedWeight")
				.IsOptional();
			Property(t => t.StartPrice)
				.HasColumnName("StartPrice")
				
				.IsOptional();
			Property(t => t.StartWeight)
				.HasColumnName("StartWeight")
			
				.IsOptional();
			Property(t => t.Province)
				.HasColumnName("Province")
				
				.IsOptional();
            Property(t => t.StartPriceUser)
                .HasColumnName("StartPriceUser")

                .IsOptional();
            Property(t => t.ContinuedWeightUser)
               .HasColumnName("ContinuedWeightUser")

               .IsOptional();

        }
	}
}
